package com.microsoft.tag.client.user.feign.fallback;

import com.microsoft.tag.client.user.feign.ClientUserFeign;
import org.springframework.stereotype.Component;

/**
 * 软件著作权:王艳明
 * 系统名称:SpringBoot后台管理系统
 *
 * @author WangYanming
 * @ClassName 类:ClientUserFeignFallback.java
 * @Description 功能描述:熔断回调类
 * @Version 1.0
 * @date 2025-10-15 上午 10:17
 */
@Component
public class ClientUserFeignFallback implements ClientUserFeign {

    // 请求连接404,超时,读取超时(配置的60秒)都会走fallback方法
    @Override
    public String getUser(Long id) {
        return "获取用户信息失败，服务暂时不可用！";
    }
}
